Skip to content

fix: improve user agent detection in workflowengine - #66988

Merged
salmart-dev merged 2 commits into
masterfrom
fix/request-user-agent-extend
Nov 27, 2026
Merged

salmart-dev merged 2 commits into
masterfrom
fix/request-user-agent-extend

Conversation

@salmart-dev

@salmart-dev salmart-dev commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Extends the user-agent regular expressions to match the ones sent by the Android and iOS apps web views, so that Flow rules blocking iOS or Android apps from opening files match.

Note: IRequest has user agents for the iOS and Android apps as well, those are currently used to decide whether to skip the CSRF checks, so widening the regex there widens the exception too. This is the reason this PR adds new regular expressions and does not change the existing ones.

TODO

  • Adjust @since version in backports

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@salmart-dev salmart-dev self-assigned this Nov 24, 2026
@salmart-dev salmart-dev added this to the Nextcloud 36 milestone Nov 24, 2026
@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport to stable35

@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport to stable34

@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport to stable33

@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport to stable32

@salmart-dev
salmart-dev marked this pull request as ready for review November 24, 2026 11:02
@salmart-dev
salmart-dev requested a review from a team as a code owner November 24, 2026 11:02
@salmart-dev
salmart-dev requested review from Altahrim and come-nc and removed request for a team November 24, 2026 11:02
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
Assisted-by: ClaudeCode:claude-opus-5-5
@salmart-dev
salmart-dev force-pushed the fix/request-user-agent-extend branch from b15494f to b4fba03 Compare November 24, 2026 11:04
Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
@salmart-dev
salmart-dev force-pushed the fix/request-user-agent-extend branch from e9068fe to 47dc87d Compare November 27, 2026 16:09
@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport! to stable32

@salmart-dev
salmart-dev merged commit 5e69385 into master Nov 27, 2026
155 checks passed
@salmart-dev
salmart-dev deleted the fix/request-user-agent-extend branch November 27, 2026 17:45
@backportbot

backportbot Bot commented Nov 27, 2026

Copy link
Copy Markdown

The backport to stable32 is already open in #67093, so I left it as it is. Close it first if you want me to start over.

@salmart-dev salmart-dev added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish AI assisted bug feature: workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Flow app not blocking requests coming from Android and iOS Web views

4 participants